# 针对传入位置参数拆包

def fn1(name, age):
    print(name, age)

info = ['hello', 18]
# 调用函数
fn1(info[0], info[1])
fn1(*info)

print('==' * 20)
# 针对传入关键字参数拆包
# 注意: 字典的key必须和形参一一对应
# 定义:
def fn1(name, age):
    print(name, age)
info_dict = {'name':'hello', 'age':18}
# 调用
fn1(age=info_dict['age'], name=info_dict['name'])

fn1(**info_dict)